// 业务表前缀
const BUSINESS_PREFIX = "idc_";
// 系统表前缀
const SYSTEM_PREFIX = "system_";
// 关联表前缀
const REL_PREFIX = "rel_";

export const MysqlConfig = {
  host: "101.34.105.126",
  user: "idc_user",
  password: "idc@2024",
  database: "idc_system",
};

/**
 * 业务表
 */
export const BUSINESS_TABLE = {
  PERSON: BUSINESS_PREFIX + "person",
  PARK: BUSINESS_PREFIX + "park",
  PROPERTY: BUSINESS_PREFIX + "property",
  GROUP: BUSINESS_PREFIX + "group",
  ROUTER: BUSINESS_PREFIX + "router",
  CLIENT: BUSINESS_PREFIX + "client",
  PATROL: BUSINESS_PREFIX + "patrol",
  DEP: BUSINESS_PREFIX + "dep",
};

/**
 * 系统表
 */
export const SYSTEM_TABLE = {
  DIST: SYSTEM_PREFIX + "dist",
  AUTH: SYSTEM_PREFIX + "auth",
  ROLE: SYSTEM_PREFIX + "role",
  USER: SYSTEM_PREFIX + "user",
};
/**
 * 关联表
 */
export const REL_TABLE = {
  ROUTER_PARK: `${REL_PREFIX}_router_park`,
  ROLE_AUTH: `${REL_PREFIX}_role_auth`,
};
